# --------------------------------
# -*- coding: utf-8 -*-
# Author: Zhu
# Date: 2021/12/20   
# Description:
# --------------------------------
from selenium.webdriver.common.by import By

class ele_GOODSMANAGEMENT:
    u'作业端-基础资料-商品管理-【商品资料】页面元素'
    #

    # 商品资料
    ys_GoodsInfo = By.XPATH , '/html/body/div[1]/div/div[1]/div[2]/div[1]/div/ul/div[3]/li/ul/div[2]/li/ul/div[2]/a/li'

    # 新建按钮
    ys_Goods_Create = By.XPATH , '/html/body/div/div/div[2]/section/div/div[2]/div[1]/button[1]/span'

    # 商品资料信息--输入框：商品编码、外部商品编码、商品条码、商品名称、长、宽、高、商品净重、商品毛重、商品进价、商品售价、品牌、产地
    # Goods_BM , Goods_WBBM , Goods_TM , Goods_Name , Goods_Model
    # Length ,Width , Heigth , NedWeight , GrossWeight , Buy , Sell , Brand , Origin
    # 商品编码
    ys_Goods_BM = By.XPATH , '/html/body/div[1]/div/div[2]/section/div/div[2]/div/form/div/div[3]/div/div/div/input'

    # 外部商品编码
    ys_Goods_WBBM = By.XPATH , '/html/body/div[1]/div/div[2]/section/div/div[2]/div/form/div/div[4]/div/div/div/input'

    # 商品条码
    ys_Goods_TM = By.XPATH , '/html/body/div[1]/div/div[2]/section/div/div[2]/div/form/div/div[5]/div/div/div/input'

    # 商品名称
    ys_Goods_Name = By.XPATH , '/html/body/div[1]/div/div[2]/section/div/div[2]/div/form/div/div[6]/div/div/div/input'

    # 规格型号
    ys_Goods_Model = By.XPATH , '/html/body/div[1]/div/div[2]/section/div/div[2]/div/form/div/div[17]/div/div/div/input'

    # 长
    ys_Goods_Length = By.XPATH , '/html/body/div[1]/div/div[2]/section/div/div[2]/div/form/div/div[9]/div/div/div[1]/div/input'

    # 宽
    ys_Goods_Width = By.XPATH , '/html/body/div[1]/div/div[2]/section/div/div[2]/div/form/div/div[10]/div/div/div[1]/div/input'

    # 高
    ys_Goods_Heigth = By.XPATH , '/html/body/div[1]/div/div[2]/section/div/div[2]/div/form/div/div[11]/div/div/div[1]/div/input'

    # 商品净重
    ys_Goods_NedWeight = By.XPATH , '/html/body/div[1]/div/div[2]/section/div/div[2]/div/form/div/div[13]/div/div/div[1]/div/input'

    # 商品毛重
    ys_Goods_GrossWeight = By.XPATH , '/html/body/div[1]/div/div[2]/section/div/div[2]/div/form/div/div[14]/div/div/div[1]/div/input'

    # 商品进价
    ys_Goods_Buy = By.XPATH , '/html/body/div[1]/div/div[2]/section/div/div[2]/div/form/div/div[15]/div/div/div/div/input'

    # 商品售价
    ys_Goods_Sell = By.XPATH , '/html/body/div[1]/div/div[2]/section/div/div[2]/div/form/div/div[16]/div/div/div/div/input'

    # 品牌
    ys_Goods_Brand = By.XPATH , '/html/body/div[1]/div/div[2]/section/div/div[3]/div/form/div/div[7]/div/div/div/input'

    # 产地
    ys_Goods_Origin = By.XPATH , '/html/body/div[1]/div/div[2]/section/div/div[3]/div/form/div/div[8]/div/div/div/input'

    # 商品资料信息--下拉列表：货主名称、商品分类、计量单位、商品类型、商品件型、供应商
    # 货主名称输入框
    ys_Goods_Shipper = By.XPATH , '/html/body/div[1]/div/div[2]/section/div/div[2]/div/form/div/div[1]/div/div/div/div[1]/input'
    # 货主名称
    ys_Goods_Shipper2 = By.XPATH , '/html/body/div[last()]/div[1]/div[1]/ul/li[3]'

    # 商品分类输入框
    ys_Goods_Sort = By.XPATH , '/html/body/div[1]/div/div[2]/section/div/div[2]/div/form/div/div[2]/div/div/div/div[1]/input'
    # 商品分类
    ys_Goods_Sort2 = By.XPATH , '/html/body/div[last()]/div[1]/div[1]/ul/li/span'

    # 计量单位输入框
    ys_Goods_Unit = By.XPATH , '/html/body/div[1]/div/div[2]/section/div/div[2]/div/form/div/div[8]/div/div/div/div[1]/input'
    # 计量单位
    ys_Goods_Unit2 = By.XPATH , '/html/body/div[last()]/div[1]/div[1]/ul/li[2]'

    # 商品类型输入框
    ys_Goods_Type = By.XPATH , '/html/body/div[1]/div/div[2]/section/div/div[3]/div/form/div/div[1]/div/div/div/div[1]/input'
    # 商品类型
    ys_Goods_Type2 = By.XPATH , '/html/body/div[last()]/div[1]/div[1]/ul/li[1]/span'

    # 商品件型输入框
    ys_Goods_Part = By.XPATH , '/html/body/div[1]/div/div[2]/section/div/div[3]/div/form/div/div[2]/div/div/div/div[1]/input'
    # 商品件型
    ys_Goods_Part2 = By.XPATH , '/html/body/div[last()]/div[1]/div[1]/ul/li[2]/span'

    # 供应商输入框
    ys_Goods_Supplie = By.XPATH , '/html/body/div[1]/div/div[2]/section/div/div[3]/div/form/div/div[6]/div/div/div/div/input'
    # 供应商
    ys_Goods_Supplie2 = By.XPATH , "//span[contains(text(),'漠河舞厅')]"






    # 保存按钮
    ys_Goods_SubmitBtn = By.XPATH , '/html/body/div[1]/div/div[2]/section/div/div[7]/button[2]/span'
